import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		name: 'Index',
		component: () => import('../views/index/Index.vue')
	},
	{
		path: '/login',
		name: 'login',
		component: () => import('../views/login/login.vue')
	},
	{
		path: '/regist',
		name: 'regist',
		component: () => import('../views/login/regist.vue')
	},
	{
		path: '/rule',
		name: 'rule',
		component: () => import('../views/index/rule.vue')
	},
	{
		path: '/lotteryA',
		name: 'lotteryA',
		component: () => import('../views/index/lotteryA.vue')
	},
	{
		path: '/lotteryB',
		name: 'lotteryB',
		component: () => import('../views/index/lotteryB.vue')
	},
	{
		path: '/lotteryC',
		name: 'lotteryC',
		component: () => import('../views/index/lotteryC.vue')
	},
	{
		path: '/betRecord',
		name: 'betRecord',
		component: () => import('../views/betRecord/betRecord.vue')
	},
	{
		path: '/chatRoom',
		name: 'chatRoom',
		component: () => import('../views/chatRoom/chatRoom.vue')
	},
	{
		path: '/discount',
		name: 'discount',
		component: () => import('../views/discount/discount.vue')
	},
	{
		path: '/discountDetails',
		name: 'discountDetails',
		component: () => import('../views/discount/discountDetails.vue')
	},
	{
		path: '/userCenter',
		name: 'userCenter',
		component: () => import('../views/userCenter/userCenter.vue')
	},
	{
		path: '/help',
		component: () => import('../views/userCenter/help.vue')
	},
	{
		path: '/helpDetail',
		component: () => import('../views/userCenter/helpDetail.vue')
	},
	{
		path: '/personalInfo',
		component: () => import('../views/userCenter/personalInfo.vue')
	},
	{
		path: '/transactionRecord',
		component: () => import('../views/userCenter/transactionRecord.vue')
	},
	{
		path: '/bettingRecord',
		component: () => import('../views/userCenter/bettingRecord.vue')
	},
	{
		path: '/messageCenter',
		component: () => import('../views/userCenter/messageCenter.vue')
	},
	{
		path: '/quotaConversion',
		component: () => import('../views/userCenter/quotaConversion.vue')
	},
	{
		path: '/fundsDetails',
		component: () => import('../views/userCenter/fundsDetails.vue')
	},
	{
		path: '/historyData',
		component: () => import('../views/userCenter/historyData.vue')
	},
	{
		path: '/changePassword',
		component: () => import('../views/userCenter/changePassword.vue')
	},
	{
		path: '/recharge',
		component: () => import('../views/userCenter/recharge.vue')
	},
	{
		path: '/bankPay',
		component: () => import('../views/userCenter/bankPay.vue')
	},
	{
		path: '/addBankCard',
		component: () => import('../views/userCenter/addBankCard.vue')
	},
	{
		path: '/allGameSelect',
		component: () => import('../views/index/allGameSelect.vue')
	},
]

const router = new VueRouter({
	routes
})

export default router
